﻿using System;
using System.Collections.Generic;

namespace Matrix.MaKaYunShang.Model
{
	/// <summary>
    ///立减规则总表
	/// </summary>
	public class DiscountBase
	{
		#region 默认属性
      	/// <summary>
		/// Id
        /// </summary>		
        public int Id { get; set; }        
		/// <summary>
		/// 规则标题
        /// </summary>		
        public string Title { get; set; }        
		/// <summary>
		/// 时间间隔类型（0:日  1:自然周  2:自然月  3:自然年）
        /// </summary>		
        public int TimeSpanType { get; set; }        
		/// <summary>
		/// 时间间隔
        /// </summary>		
        public int TimeSpanCount { get; set; }        
		/// <summary>
		/// 用户可享受立减次数
        /// </summary>		
        public int ConsumerTotalTimes { get; set; }        
		/// <summary>
        /// 用户类型（0不限制  1平台用户  2店铺用户）
        /// </summary>		
        public int UserType { get; set; }        
		/// <summary>
		/// 是否已删除（True已删除，False未删除）
        /// </summary>		
        public bool IsDelete { get; set; }        
				#endregion
		
		#region 扩展属性

   

        /// <summary>
        /// 立减规则ID
        /// </summary>		
        public int DiscountBaseId { get; set; }
        /// <summary>
        /// 次数序号
        /// </summary>		
        public int SerialNum { get; set; }
        /// <summary>
        /// 几率（百分比）
        /// </summary>		
        public int DiscountPercent { get; set; }

        /// <summary>
        /// 立减金额区间最小值
        /// </summary>		
        public decimal MinPayDiscount { get; set; }
        /// <summary>
        /// 立减金额区间最大值
        /// </summary>		
        public decimal MaxPayDiscount { get; set; }
        /// <summary>
        /// 出现几率
        /// </summary>		
        public int DiscountProbability { get; set; }

        public string DiscountPercentStr { get; set; }
        public string MinusConfigureStr { get; set; }
	    public List<DiscountTimesProbability> DiscountTimesProbabilityList { get; set; }
        public List<SysPayDiscountConfig> SysPayDiscountConfigList { get; set; }
	    #endregion
	}
}